package com.lanou.mapper;

import com.lanou.bean.resultImgBean.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by dllo on 18/3/10.
 */
@Repository
public interface ImgMapper {
    List<ROSI> findROSIImg();
    List<Img> findImgByROSIId(Integer ROSIId);

    List<Img> findImg(@Param("desc") Integer desc,
                      @Param("category") Integer category,
                      @Param("type") Integer typeId,
                      @Param("home") Integer homeId,
                      @Param("layout") Integer layoutId,
                      @Param("style") Integer styleId,
                      @Param("pub") Integer publicId,
                      @Param("ROSI") Integer ROSIId,
                      @Param("room") Integer roomId
                      );


    List<Home> findHome();
    List<Layout> findLayout();
    List<Pub> findPub();
    List<Room> findRoom();
    List<Style> findStyle();
    List<Type> findType();

    void collectImgAdd(@Param("count") Integer count,@Param("imgId") Integer imgId);
    void collectImgSub(@Param("count") Integer count,@Param("imgId") Integer imgId);
}
